package com.sne.sys.entity;

    import com.sne.common.entity.BaseModel;
    import com.sne.common.validator.Unique;
    import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

    import javax.validation.constraints.NotBlank;

/**
 * 系统参数
 * @author fanghh
 * @since 2020-01-10
 */
@Unique(fields = "param_key",messages = "参数key值不唯一")
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "SysParam对象", description = "系统参数")
public class SysParam extends BaseModel<SysParam>{

    @NotBlank(message = "参数名不为空")
    @ApiModelProperty(value = "参数名")
    private String paramName;

    @ApiModelProperty(value = "参数key值")
    private String paramKey;
    @ApiModelProperty(value = "参数值")
    private String paramValue;
    @ApiModelProperty(value = "状态")
    private Boolean state;
    @ApiModelProperty(value = "备注")
    private String note;
    @ApiModelProperty(value = "创建人")
    private Long createUserId;
    @ApiModelProperty(value = "更新人")
    private Long updateUserId;
}
